/**
 * 废弃
 * 权限管理套件
 */
export const authManageChildren = [
    {
        tag: 'Title',
        key: 'changeReasonTitle',
        formId: 'changeReasonTitle',
        options: {},
        titleValue: '变更理由',
        rules: [],
        noValue: true,
        inFormAuth: false
    },
    {
        label: '变更理由',
        formId: 'changeReason',
        key: 'changeReason',
        tag: 'TextArea',
        rules: [
            {
                required: true,
                message: '请输入变更理由'
            }
        ],
        options: {
            maxLength: 500,
            disabled: true
        }
    },
    {
        tag: 'Title',
        key: 'changContentTitle',
        formId: 'changContentTitle',
        options: {},
        titleValue: '变更内容',
        rules: [],
        noValue: true
    },
    {
        label: '变更最高权限',
        formId: 'dutyAuth',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: false,
        inFormAuth: false,
        inRenderDom: false,
        isUsed: false,
        proCondition: true,
        conditionShowOption: { valueMode: 'multiple', showType: 'select' },
        dataList: [
            {
                label: '基础',
                value: 1
            },
            {
                label: '职能',
                value: 2
            },
            {
                label: '高级',
                value: 3
            }
        ]
    },
    {
        label: '变更最高权限',
        formId: 'dutyAuthName',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: true,
        inFormAuth: false,
        inRenderDom: false
    },
    {
        label: '申请成功跳转',
        formId: 'applySuccessUrl',
        tag: 'Input',
        rules: [],
        options: {
            initialValue: '/office/personnelManagement/organization/authorization',
            disabled: true
        },
        inFormAuth: false,
        inRenderDom: false
    }
];

export const authManageControl = {
    label: '权限变更',
    cmpType: 'custom',
    formId: '',
    key: 'AuthManage',
    tag: 'AuthManage',
    formStyle: true,
    proCondition: true,
    children: authManageChildren
};
